home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 9
/
FM Towns Free Software Collection 9.iso
/
t_os
/
tool
/
extdrv
/
src
/
debug.c
< prev
next >
Wrap
Text File
|
1994-11-16
|
513b
|
37 lines
auxputch(int ch)
{
_auxput(ch);
}
auxputs(char *s)
{
while (*s != '\0')
auxputch(*s++);
}
auxputhex(int n)
{
n &= 0xf;
if (n >= 10)
_auxput('A' + (n - 10));
else
_auxput('0'+ n);
}
auxputdigit(int n)
{
_auxput('0'+ n);
}
auxprinthex(long n)
{
auxputhex((int)(n >> 28));
auxputhex((int)(n >> 24));
auxputhex((int)(n >> 20));
auxputhex((int)(n >> 16));
auxputhex((int)(n >> 12));
auxputhex((int)(n >> 8));
auxputhex((int)(n >> 4));
auxputhex((int)(n));
}